﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Yto.Entities;

namespace com.ytocargo.Core.GeneralDocs
{
    [Table("YTO_GENERALDOC")]
    public class GeneralDoc : Entity<string>
    {
        [Column("ID")]
        [StringLength(50)]
        public override string Id { get => base.Id; set => base.Id = value; }

        [Column("TITLE")]
        [StringLength(50)]
        public string Title { get; set; }

        [Column("CONTENT")]
        [StringLength(200)]
        public string Content { get; set; }

        [Column("PARENTID")]
        [StringLength(50)]
        public string ParentId { get; set; }

        [Column("DOCUMENT")]
        [StringLength(200)]
        public string Document { get; set; }

        [Column(TypeName = "char")]
        [StringLength(10)]
        public string IS_MODIFIED { get; set; }

        [Column("PDFNAME")]
        [StringLength(200)]
        public string PdfName { get; set; }

        [Column("VALIDFROM")]
        public DateTime? ValidFrom { get; set; }

        [Column("VALIDUNTIL")]
        public DateTime? ValidUntil { get; set; }

        [Column("FILESIZE")]
        public long FileSize { get; set; }

        [StringLength(50)]
        public string MD5 { get; set; }
    }
}
